package com.aspose.cells;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

class zano {
   static Object a(Object var0) {
      if (var0 == null) {
         return null;
      } else {
         HashMap var1 = new HashMap();
         ArrayList var2 = new ArrayList();
         if (!com.aspose.cells.a.c.zc.a(var0)) {
            return var0;
         } else {
            Object[] var3 = (Object[])((Object[])var0);

            for(int var4 = 0; var4 < var3.length; ++var4) {
               Object var5 = com.aspose.cells.b.a.za.a(var3, var4);
               if (var5 != null) {
                  if (com.aspose.cells.a.c.zc.a(var5)) {
                     Object[] var12 = (Object[])((Object[])var5);

                     for(int var7 = 0; var7 < var12.length; ++var7) {
                        Object var8 = com.aspose.cells.b.a.za.a(var12, var7);
                        if (var8 != null) {
                           Object var9 = var1.get(var8);
                           if (var9 != null) {
                              var1.put(var8, (Integer)var9 + 1);
                           } else {
                              var1.put(var8, 1);
                              com.aspose.cells.b.a.a.ze.a(var2, var8);
                           }
                        }
                     }
                  } else {
                     Object var6 = var1.get(var5);
                     if (var6 != null) {
                        var1.put(var5, (Integer)var6 + 1);
                     } else {
                        var1.put(var5, 1);
                        com.aspose.cells.b.a.a.ze.a(var2, var5);
                     }
                  }
               }
            }

            Object var10 = null;
            int var11 = 0;
            Iterator var13 = var2.iterator();

            while(var13.hasNext()) {
               Object var14 = var13.next();
               int var15 = (Integer)var1.get(var14);
               if (var15 > var11) {
                  var11 = var15;
                  var10 = var14;
               }
            }

            return var10;
         }
      }
   }
}
